// 引入exporess框架 记得npm i express --save
var express = require('express');

// 获取，路由对象
const router = express.Router();

let service = require("../service/resource.js");

/**
 * 获取七牛云上传token
 */
router.post("/getToken", (req, res) => {

    // req.body:获取post请求，正文参数
    service.getToken(req.body,function(result) {
        res.json(result);
    })
})

module.exports = router;